<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<title>找回密码 - 易安网</title>
		<script language="JavaScript" src="<%=request.getContextPath()%>/js/JQuery/jquery-1.4.2.min.js"></script>
		<script language="JavaScript" src="<%=request.getContextPath()%>/js/public.js"></script>
		<link rel="stylesheet" href="<%=request.getContextPath()%>/css/auntion.css" type="text/css"/> 
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/login.css" type="text/css" />
		<link rel="shortcut icon" href="http://s.zbjimg.com/img/favicon.ico" type="image/x-icon" />
		<style type="text/css">
.zbj_suggest {
	background-color: White;
	border: solid 1px #C7C7C7;
}

.zbj_suggest div {
	cursor: default;
	padding-left: 5px;
}

.zbj_suggest div.select,.zbj_suggest div:hover {
	background-color: #DAF1FF;
	letter-spacing: 1px;
}

.reg_form .at_text em {
	top: 0;
}

.reg_form dd .sugNameCon {
	clear: both;
	width: 226px;
	margin-left: 73px;
	background-color: #DAF1FF;
	border: solid 1px #84D2FF;
}

.reg_form dd .sugNameCon label {
	cursor: pointer;
}

.at_text em.on {
	z-index: 1;
}
</style>

<script type="text/javascript">
	function reloadVerifyCode(){
	    var timenow = new Date().getTime();                        
	    document.getElementById("chkImg").src="<%=request.getContextPath()%>/simpleCaptcha.jpg?d="+timenow;
	}
	   
	function submitApply(){
			var emailVal=$d("email").value;
			var code=$d("code").value;
			if(emailVal == ""){
				$d("emailError").innerHTML="请输入邮箱";
				return;		
			}
			
			if(code == ""){
				alert("请输入验证码");
				return;		
			}
		//校验邮箱
		var params = {
					email:emailVal,
					code:code
					};
		$.ajax({type: "POST",
		       url: "ajaxPwd_regActive.do",
		       data: params,
		       async: false,
		       success: function(result){
				 if(result.retcode=="0000"){
				  	emailError.innerHTML="";
				  	put_div.style.display="none";
				  	suc_div.style.display="block";
				 }else{
				  	emailError.innerHTML=result.retmsg;
				 }
			  }
			},"json");
		}
</script>
	</head>
	<body>
		<div class="login_page">
			<div class="l_tmenu">
				<a href="<%=request.getContextPath()%>/regist_page.do">免费注册</a> |
				<a href="<%=request.getContextPath()%>/loginPage.do">登录</a> |
				<a href="<%=request.getContextPath()%>/">易安首页</a> |
				<a href="<%=request.getContextPath()%>/pages.do?t=10">帮助</a>
			</div>
			<h1 class="at_cis">
				<a href="http://www.zhubajie.com/" class="at_gohome" title="返回易安网首页"></a>
			</h1>
			<div class="clearfix mb10">
				<div class="at_loc">
				</div>
				<p class="crumb gray3">
				</p>
			</div>
			<div class="reg_box clearfix">
				<div class="tit gray3">
					<b class="gray1 mr15">激活账户</b>
				</div>
				<div id="reg_form" class="reg_form">
					<form id="reg_box" name="frm_reg" method="post">
						<div></div>
						<dl>
							<dd class="clearfix">
								<em class="lab">邮箱地址:</em>
								<span class="at_text t_1_d"> <input type="text" value="test1@seal.com"
										id="e_name" name="email" tabindex="1" />
								<font color="red"><span id="emailError" class="at_text t_1_d"></span></font></span><!-- 只支持邮箱找回，用户名需加公司代码才能定位到具体用户 -->
							</dd>
							
							<dd class="clearfix">
								<em class="lab">验证码:</em>
								<span class="at_text t_1_d"> <input type="text" value=""
										id="u_code" name="code" tabindex="3" style="width: 80px;" />&nbsp;
									<img id="chkImg"
										src="<%=request.getContextPath()%>/simpleCaptcha.jpg" /> 看不清？
									<a onclick="reloadVerifyCode();" href="#">换一张</a> </span>
							</dd>
							
							<dd class="clearfix">
								<em class="lab"></em>
								<a onclick="return submitApply();" class="at_but b_1_y" id="reg_sub"><u></u>下一步</a>
							</dd>
						</dl>
					</form>
					<div class="clear"></div>
				</div>
				<div id="suc_div" style="display: none;" align="center">
					<div>
						您的申请已提交成功，请查看您的邮箱。
					</div>
					<div>
						<a class="btn_logintwo" href="javascript:void(0);" class="at_but b_1_y"
							onclick="javascript:window.opener=null;window.close();return false;"><span>关闭此页</span>
						</a>
					</div>
				</div>
			
				<!--reg_form-->
			</div>
			<!--reg_box-->

			<!--底部-->
			<%@ include file="/user_button.jsp"%>
			<!--底部-->
		</div>
	</body>
</html>


